﻿using System;
using System.Collections;
using System.Collections.Generic;
using Gameplay.PVE.Survivor;
using OWL.Rendering.HRP;
using UnityEngine;
using Yoozoo.HRP.Runtime;

public class MonsterGroupData : MonoBehaviour
{
    public int fogId;

    private void OnDrawGizmos()
    {
        /*if (fogId > 0)
        {
            var parent = transform.parent;
            while (parent != null)
            {
                var component = parent.GetComponent<BattleMapData>();
                if (component != null)
                {
                    var fogs = component.fogs;
                    if (fogs != null)
                    {
                        foreach (var fog in fogs)
                        {
                            if (fog == null)
                            {
                                continue;
                            }
                            if (fog.id == fogId)
                            {
                                //划线
                                var children = transform.GetComponentsInChildren<BattleMonsterData>();
                                foreach (var child in children)
                                {
                                    Gizmos.color = new Color(0,0.5f,1,1);
                                    Gizmos.DrawLine(fog.GetCenterWorldPosition() + new Vector3(0,0.5f,0), child.transform.position + new Vector3(0,0.5f,0));
                                }
                            }
                        }
                    }
                    break;
                }
                parent = parent.parent;
                
            }
        }*/
    }
}